package edu.cmu.ece.ds.droidchat.message;

/**
 * Here is how keep alive works:
 *  
 * For a chat session you are in, you send a keep alive to participants that are
 *  your neighbors.
 * 
 *
 */
public class ReportKeepAliveMessage extends DroidChatMessage{
	private static final long serialVersionUID = -312057713047975806L;
	private String chatSessionID;
	private String reporter;
	private int reporterIP;
	private String forwarder;
	private int kLround;
	
	private boolean deKL = false;

	public ReportKeepAliveMessage(
			String sessionid,
			String reporter, 
			int reporterIP,
			String forwarder) {
		super(DroidChatMessage.REPORT_KEEPALIVE);
		
		this.chatSessionID = sessionid;
		this.reporter = reporter;
		this.reporterIP = reporterIP;
		this.forwarder = forwarder;
	}

	public String getChatSessionID(){
		return chatSessionID;
	}
	
	public String getReporter(){
		return reporter;
	}
	
	public int getReporterIP(){
		return reporterIP;
	}
	
	public void setForwarder(String f){
		this.forwarder = f;
	}
	public String getForwarder(){
		return forwarder;
	}
	
	public void setKLRound(int r){
		this.kLround = r;
	}
	public int getKLRound(){
		return kLround;
	}
	
	public boolean isDeKL() {
		return deKL;
	}
	public void setDeKL(boolean deKL) {
		this.deKL = deKL;
	}
}
